﻿@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
    var extenssion = new LKVService.User();
}
@model LKVMLMADMIN.Models.RegisterModel
@using (Html.BeginForm("AddUserProfile", "User", FormMethod.Post))
{   
     <div class="row">
           <div class="col-lg-12">
           <h3 class="page-header">Thêm thành viên</h3>
                </div>         
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Hồ sơ cá nhân
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">                               
                                        <label>Mã số</label>                                    
                                        <div class="form-group">                                                                                                                                                       
                                            <input type="text" name="Username" class="form-control " required="" placeholder="Tên đăng nhập">                                                                                                                                                    
                                        </div>                                                                                                                
                                        <label>Mật khẩu</label>
                                        <div class="form-group">                                          
                                            <input type="password" name="pass" class="form-control" required="" placeholder="PassWord">                                  
                                        </div> 
                                           
                                        <label >Họ tên</label>
                                        <div class="form-group">                                        
                                            <input type="text" name="FullName" class="form-control" required="" placeholder="Nguyễn văn B">                                       
                                        </div>                                              
                                        <label>Email</label>
                                        <div class="form-group">                                         
                                            <input type="text" name="email" class="form-control" required="" placeholder="Example@gmail.com">                                      
                                        </div> 
                                        
                                        <label>Giới tính</label>
                                        <div class="form-group">                                   
                                            @Html.DropDownList("Sex", new SelectList(
                                            new List<Object>{
                                            new { value ="Nam" , text = "Nam"},
                                            new { value ="Nữ" , text = "Nữ"},
                                            },
                                            "value",
                                            "text",
                                            null), new { @class = "form-control" })                                            
                                        </div>                                 
                                        <label>Nhóm</label>
                                        <div class="form-group">                                          
                                            @Html.DropDownList("Groupid", new SelectList(@ViewBag.groupName1, "value", "text", null), new { @class = "form-control" })
                                        </div>                                                                                                                    
                                        <label>Địa chỉ</label>
                                        <div class="form-group">                                       
                                            @Html.TextBoxFor(m => m.DiaChi, new { Class = "form-control", placeholder = "Địa chỉ thường trú" })
                                        </div>                                                                                                                                                                                                                                        
                                </div>  
                                                          
                                <div class="col-lg-6">                                  
                                   
                                        <label>Số CMND</label>
                                        <div class="form-group">                                           
                                            <input type="text" name="SoCmnd" class="form-control" required="" placeholder="Số chứng minh nhân dân">                                      
                                        </div>                                    
                                        <label>Số tài khoản</label>
                                        <div class="form-group">                                        
                                            @Html.TextBoxFor(m => m.SoTaiKhoan, new { Class = "form-control", placeholder = "Số tài khoản ngân hàng" })
                                        </div>  
                                       
                                        <label>Điện thoại</label>
                                        <div class="form-group">                                         
                                            @Html.TextBoxFor(m => m.SDTNHARIENG, new { Class = "form-control", placeholder = "Điện thoại liên hệ" })
                                        </div>
                                      
                                    
                                    @if (ViewBag.SysTree == "1")
                                        {

                                        <label>Mã bảo trợ</label>
                                        <div class="form-group">                                      
                                            @Html.DropDownList("Name_IDParent", new SelectList(@ViewBag.username, "value", "text", null), new { @class = "combobox" })                                                                           
                                         </div>
                                        }
                                    @if (ViewBag.BinaryTree == "2")
                                        {
                                        <label>Mã chỉ định </label>
                                        <div class="form-group">                                       
                                            @Html.DropDownList("Name_IDBinary", new SelectList(@ViewBag.username, "value", "text", null), new { @class = "combobox" })                                       
                                        </div>
                                       
                                        <label>Nhánh </label>
                                        <div class="form-group">                                      
                                            @Html.DropDownList("LR", new SelectList(
                                            new List<Object>{
                                            new { value ="Left" , text = "Left"},
                                            new { value ="Right" , text = "Right"},
                                            },
                                             "value",
                                              "text",
                                              "Left"), new { @class = "form-control" })                                                                           
                                        </div>
                                        }
                                                                                                                                 
                                </div>                                              
                            </div>    
                            <div class="pull-right" style="margin-right:18px;">
                                <button type="submit" class="btn_submit btn btn-default">Save</button>
                                <button type="reset" class="btn_submit btn btn-default">Cancel</button>
                            </div>                 
                        </div>              
                    </div>             
                </div>            
            </div> 
}
<script src="~/Scripts/fm.datetator-fo.jquery.js"></script>
<link href="~/Scripts/fm.datetator.jquery.css" rel="stylesheet" />
<script src="~/Scripts/fm.datetator.jquery.js"></script>
<script>      
        $('.inputBox').datetator();        
</script>

